<?php

use yii\helpers\Url;

$tab_list = [
    'index' => [
        'title' => '自定义日历列表',
        'url' => '/admin/calendar/index',
    ],
    'set' => [
        'title' => '自定义日历',
        'url' => '/admin/calendar/set',
    ],
];
?>
<form class="member_search">
    <div class=" ui inverted segment">
        <div class=" ui inverted secondary pointing menu">
            <?php foreach ($tab_list as $key => $item): ?>
            <a class="item <?php if ($tab == $key): ?>active<?php endif;?> " href="<?=Url::to([$item['url']])?>">
                <?=$item['title']?> </a>
            <?php endforeach;?>
        </div>
    </div>
</form>